package com.buaa.aimall.computeModule.Service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.buaa.aimall.computeModule.Entity.ComputeEntity;
import org.springframework.web.multipart.MultipartFile;
import com.buaa.aimall.computeModule.DTO.FilterComputeDTO;
import com.buaa.aimall.Utils.PageReturnResult;

public interface ComputeService extends IService<ComputeEntity> {
    Boolean createCompute(ComputeEntity computeEntity, MultipartFile docFile);

    PageReturnResult<ComputeEntity> filterCompute(FilterComputeDTO filterComputeDTO);
    Boolean enableCompute(String id);
    
    Boolean disableCompute(String id);

    Boolean updateComputeDoc(String id, MultipartFile docFile);

    PageReturnResult<ComputeEntity> getHomepageContent(String orderType, Integer currentPage, Integer pageSize, String name);
}
